<?php
class HelloController extends Main_Controller_Action{
    
    public function init(){
            $this->loadTemplates('admin');
            
        }
        
        public function preDispatch(){
        	$auth = Zend_Auth::getInstance();
        	if(!$auth->hasIdentity()){
        		if($this->_request->getActionName() != 'login'){
        			$this->_redirect('admin/index/login');
        		}
        	}
        }
        
        
    public function similarAction()
    {
        $tour= new Admin_Model_Tour();
        $simi=$tour->Eve_Similar(1);
        $this->view->simi=$simi;
    }
    
    public function catAction()
    {
        $cat= new Admin_Model_Category();
        $name=$cat->getCatNameById(1);
        $this->view->name=$name;
    }
    
}

?>